package io.bdmc.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.bdmc.common.annotation.FieldMeta;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 实体
 * </p>
 *
 * @author 黄露
 * @since 2020-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "SysAbout对象", description = "")
public class SysAbout extends Model<SysAbout> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "about_id", type = IdType.AUTO)
    private Integer aboutId;

    // "中文名称")
    @FieldMeta(name = "中文名称", description = "中文名称")
    private String softNameCn;

    // "英文名称")
    @FieldMeta(name = "英文名称", description = "英文名称")
    private String softNameEn;

    // "软件版本")
    @FieldMeta(name = "软件版本", description = "软件版本")
    private String softVersion;

    @FieldMeta(name = "图片路径", description = "图片路径")
    // "图片路径")
    private String softLogo;

    @FieldMeta(name = "邮箱服务器地址", description = "邮箱服务器地址")
    // "邮箱服务器地址")
    private String mailHost;

    @FieldMeta(name = "邮箱用户名", description = "邮箱用户名")
    // "邮箱用户名")
    private String mailUsername;

    @FieldMeta(name = "邮箱密码", description = "邮箱密码")
    // "邮箱密码")
    private String mailPassword;

    @FieldMeta(name = "接收邮箱路径", description = "接收邮箱路径")
    // "接收邮箱路径")
    private String mailReceiver;

    @FieldMeta(name = "是否启用", description = "是否启用")
    // "是否启用")
    private Boolean mailEnable;

    @FieldMeta(name = "测量保存时间", description = "测量保存时间")
    // "测量保存时间")
    private int measureSaveTime;

    private String smsIp;

    private Integer smsPort;

    private String smsReceiver;

    private Boolean smsEnable;

    @TableField(exist = false)
    private Boolean is162Startup;

    private Integer dataSaveInterval;

    @Override
    public Serializable pkVal() {
        return this.aboutId;
    }

}
